Alerts

interface Alerts

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun createDevice(device: AlertDevice, listener: RainbowListener<AlertDevice, Unit>)

Create a new device associated to the user account. This device will receive alerts

Link copied to clipboard
abstract fun deleteDevice(deviceId: String, listener: RainbowListener<Unit, Unit>)

Create a new device associated to the user account. This device will receive alerts

Link copied to clipboard
abstract fun getDevices(listener: RainbowListener<AlertDevicesData, Unit>)

Get the list of devices which will receive alerts

Link copied to clipboard
abstract fun registerChangeListener(ialertNotificationListener: Alerts.IAlertNotificationListener)
Link copied to clipboard
abstract fun sendAlertFeedback(deviceId: String, alertId: String, answerId: String, listener: RainbowListener<Unit, Unit>)

send a feedback of the alert

Link copied to clipboard
abstract fun sendReadAcknoledge(alertTemplate: AlertTemplate)

send a read acknoledge

Link copied to clipboard
abstract fun sendReceivedAcknoledge(alertTemplate: AlertTemplate)

send a received acknoledge

Link copied to clipboard
abstract fun unregisterChangeListener(ialertNotificationListener: Alerts.IAlertNotificationListener)
Link copied to clipboard
abstract fun updateDevice(device: AlertDevice, listener: RainbowListener<AlertDevice, Unit>)

Update a device which already exists associated to the user account.